package cn.stylefeng.guns.goods.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import cn.stylefeng.guns.goodsdetail.entity.GoodsDetail;
import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * goods
 *
 * @author aria
 * @date 2021/02/20 20:24
 */
@ToString
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("goods")
public class Goods extends BaseEntity {

    /**
     * 商品编号
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 上架用户编号
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 商品图片
     */
    @TableField("goods_image")
    private String goodsImage;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品价格
     */
    @TableField("goods_price")
    private Double goodsPrice;

    /**
     * 商品库存
     */
    @TableField("goods_count")
    private Integer goodsCount;

    /**
     * 销量
     */
    @TableField("goods_volume")
    private Integer goodsVolume;

    /**
     * 顶部图片
     */
    //@TableField("top_Image")
    //private String topImage;

    /**
     * 材质
     */
    @TableField("quality")
    private String quality;

    /**
     * 尺寸
     */
    @TableField("size")
    private String size;

    /**
     * 成色
     */
    @TableField("degree")
    private String degree;

    /**
     * 颜色
     */
    @TableField("color")
    private String color;

    /**
     * 结构描述
     */
    @TableField("describe_")
    private String describe;

    /**
     * 商品说明配图
     */
    //@TableField("desc_image")
    //private String descImage;

    /**
     * 商品说明文字描述
     */
    @TableField("desc_")
    private String desc;

    /**
     * 分类
     */
    @TableField("type")
    private Integer type;

    /**
     * 是否为精选
     */
    @TableField("choiceness")
    private Integer choiceness;

    /**
     * 审核
     */
    @TableField("audit")
    private Integer audit;

    /**
     *  详情图片集合
     */
    @TableField(exist = false)
    private List<GoodsDetail> detailImage;


}
